//
//  ViewController.m
//  MJBannerPlayer
//
//  Created by WuXushun on 16/1/21.
//  Copyright © 2016年 wuxushun. All rights reserved.
//

#import "ViewController.h"
#import "MJBannnerPlayer.h"

@interface ViewController ()<MJBannnerPlayerDeledage>

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    NSArray *temp = @[[UIImage imageNamed:@"1"],[UIImage imageNamed:@"2"],[UIImage imageNamed:@"3.jpg"],[UIImage imageNamed:@"4.jpg"]];
    
    [MJBannnerPlayer initWithSourceArray:temp
                               addTarget:self
                                delegate:self
                                withSize:CGRectMake(0, 50, self.view.frame.size.width, 160)
                        withTimeInterval:2.f];
    
}

-(void)MJBannnerPlayer:(UIView *)bannerPlayer didSelectedIndex:(NSInteger)index{

    NSLog(@"%ld",index);

}

@end
// 版权属于原作者
// http://code4app.com (cn) http://code4app.net (en)
// 发布代码于最专业的源码分享网站: Code4App.com